package chapter_3;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

public class MainTest {

    public static void main(String[] args) {

        List<String> lists = new ArrayList<>();

        lists.add("sjlkdjsa");
        lists.add("53543543");
        lists.add("dfdgfgfb");
        lists.add("rev313ff");
        lists.add("31d313f1");

        long count = lists.stream().filter(s -> s.endsWith("3")).count();

        String[] strings = {"a", "b", "c"};

        List<String> stringList = Stream.of(strings).collect(Collectors.toList());
        System.out.println(stringList);

    }

}
